package Dao;

public class User {
	String name;
	String passwd;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	@Override
	public String toString() {
		return "Username=" + name ;
	}
	@Override
	public int hashCode() {
		return 1;
	}
	@Override
	public boolean equals(Object obj) {
		boolean flag=false;
		if(obj instanceof User) {
			User user=(User)obj;
			if(this.name!=null&&user.name!=null&&this.name.equals(user.name)) {
				flag=true;
			}
		}
		return flag;
	}

}
